package com.shanzmoo.db.store.mapper;

import com.shanzmoo.db.store.entity.StoreMemberStockEntity;
import com.shanzmoo.db.store.entity.query.StoreMemberStockQuery;
import com.shanzmoo.db.store.entity.vo.StoreMemberStockVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓储用户库存实时明细 Mapper 接口
 *
 * @author Gzhao 2021-03-08
 */
public interface StoreMemberStockMapper extends BaseMapper<StoreMemberStockEntity> {

    List<StoreMemberStockVO> queryPageList(StoreMemberStockQuery query);

    Integer updateStock(@Param("memberId") Integer memberId, @Param("sku") String sku, @Param("storeCode") String storeCode,
                        @Param("skuNum") int skuNum, @Param("versionId") Integer versionId);
}
